package com.px.auditRecord.domain;

import com.px.common.config.MinIoClientConfig;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModelProperty;
import com.px.common.annotation.Excel;
import com.px.common.core.domain.BaseEntity;

/**
 * 备案人员审核对象 audit_record_user
 *
 * @author WRJ
 * @date 2024-08
 */
public class AuditRecordUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @ApiModelProperty(value = "")
    private Integer id;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String name;

    /** 手机号码 */
    @ApiModelProperty(value = "手机号码")
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 手机验证状态true通过 */
    @ApiModelProperty(value = "手机验证状态true通过")
    @Excel(name = "手机验证状态true通过")
    private String phonenumberState;

    /** 身份证 */
    @ApiModelProperty(value = "身份证")
    @Excel(name = "身份证")
    private String idcard;

    /** 身份证验证状态true通过 */
    @ApiModelProperty(value = "身份证验证状态true通过")
    @Excel(name = "身份证验证状态true通过")
    private String idcardState;

    /** $column.columnComment */
    @ApiModelProperty(value = "$column.columnComment")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String idcardPositivePhoto;

    /** $column.columnComment */
    @ApiModelProperty(value = "$column.columnComment")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String idcardReversePhoto;

    /** 飞行证号 */
    @ApiModelProperty(value = "飞行证号")
    @Excel(name = "飞行证号")
    private String flightNo;

    /** 飞行证验证状态true通过 */
    @ApiModelProperty(value = "飞行证验证状态true通过")
    @Excel(name = "飞行证验证状态true通过")
    private String flightState;

    /** $column.columnComment */
    @ApiModelProperty(value = "$column.columnComment")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String flightPhoto;

    /** 企业编码 */
    @ApiModelProperty(value = "企业编码")
    @Excel(name = "企业编码")
    private String organizationCode;

    /** 企业名称 */
    @ApiModelProperty(value = "企业名称")
    @Excel(name = "企业名称")
    private String organizationName;

    /** 地址 */
    @ApiModelProperty(value = "地址")
    @Excel(name = "地址")
    private String address;

    /** 0:审核中；1:审核通过；2:审核拒绝； */
    @ApiModelProperty(value = "0:审核中；1:审核通过；2:审核拒绝；")
    @Excel(name = "0:审核中；1:审核通过；2:审核拒绝；")
    private String auditState;

    /** 审核意见 */
    @ApiModelProperty(value = "审核意见")
    @Excel(name = "审核意见")
    private String auditRemark;

    private String code;

    private String idcardPositivePhotoMinio;

    private String idcardReversePhotoMinio;

    private String flightPhotoMinio;

    public String getIdcardPositivePhotoMinio() {
        if (null != idcardPositivePhoto && idcardPositivePhoto.startsWith("http")) {
            return idcardPositivePhoto;
        } else {
            return MinIoClientConfig.PREVIEW_END_POINT_URL + "/" + idcardPositivePhoto;
        }
    }

    public void setIdcardPositivePhotoMinio(String idcardPositivePhotoMinio) {
        this.idcardPositivePhotoMinio = idcardPositivePhotoMinio;
    }

    public String getIdcardReversePhotoMinio() {
        if (null != idcardReversePhoto && idcardReversePhoto.startsWith("http")) {
            return idcardReversePhoto;
        } else {
            return MinIoClientConfig.PREVIEW_END_POINT_URL + "/" + idcardReversePhoto;
        }
    }

    public void setIdcardReversePhotoMinio(String idcardReversePhotoMinio) {
        this.idcardReversePhotoMinio = idcardReversePhotoMinio;
    }

    public String getFlightPhotoMinio() {
        if (null != flightPhoto && flightPhoto.startsWith("http")) {
            return flightPhoto;
        } else {
            return MinIoClientConfig.PREVIEW_END_POINT_URL + "/" + flightPhoto;
        }
    }

    public void setFlightPhotoMinio(String flightPhotoMinio) {
        this.flightPhotoMinio = flightPhotoMinio;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber()
    {
        return phonenumber;
    }
    public void setPhonenumberState(String phonenumberState)
    {
        this.phonenumberState = phonenumberState;
    }

    public String getPhonenumberState()
    {
        return phonenumberState;
    }
    public void setIdcard(String idcard)
    {
        this.idcard = idcard;
    }

    public String getIdcard()
    {
        return idcard;
    }
    public void setIdcardState(String idcardState)
    {
        this.idcardState = idcardState;
    }

    public String getIdcardState()
    {
        return idcardState;
    }
    public void setIdcardPositivePhoto(String idcardPositivePhoto)
    {
        this.idcardPositivePhoto = idcardPositivePhoto;
    }

    public String getIdcardPositivePhoto()
    {
        return idcardPositivePhoto;
    }
    public void setIdcardReversePhoto(String idcardReversePhoto)
    {
        this.idcardReversePhoto = idcardReversePhoto;
    }

    public String getIdcardReversePhoto()
    {
        return idcardReversePhoto;
    }
    public void setFlightNo(String flightNo)
    {
        this.flightNo = flightNo;
    }

    public String getFlightNo()
    {
        return flightNo;
    }
    public void setFlightState(String flightState)
    {
        this.flightState = flightState;
    }

    public String getFlightState()
    {
        return flightState;
    }
    public void setFlightPhoto(String flightPhoto)
    {
        this.flightPhoto = flightPhoto;
    }

    public String getFlightPhoto()
    {
        return flightPhoto;
    }
    public void setOrganizationCode(String organizationCode)
    {
        this.organizationCode = organizationCode;
    }

    public String getOrganizationCode()
    {
        return organizationCode;
    }
    public void setOrganizationName(String organizationName)
    {
        this.organizationName = organizationName;
    }

    public String getOrganizationName()
    {
        return organizationName;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setAuditState(String auditState)
    {
        this.auditState = auditState;
    }

    public String getAuditState()
    {
        return auditState;
    }
    public void setAuditRemark(String auditRemark)
    {
        this.auditRemark = auditRemark;
    }

    public String getAuditRemark()
    {
        return auditRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("phonenumber", getPhonenumber())
                .append("phonenumberState", getPhonenumberState())
                .append("idcard", getIdcard())
                .append("idcardState", getIdcardState())
                .append("idcardPositivePhoto", getIdcardPositivePhoto())
                .append("idcardReversePhoto", getIdcardReversePhoto())
                .append("flightNo", getFlightNo())
                .append("flightState", getFlightState())
                .append("flightPhoto", getFlightPhoto())
                .append("organizationCode", getOrganizationCode())
                .append("organizationName", getOrganizationName())
                .append("address", getAddress())
                .append("auditState", getAuditState())
                .append("auditRemark", getAuditRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
